<footer>
<div id="footer" class="w100p">
   <div class="footer w1000 mc">
       <p>SCAU Copyright ©  2012 国际教育学院.All rights reserved. </p>
       <p>地址:广东省天河区五山路486号 邮编:510642 </p>
       <p><span>Tel:+8620 85283482</span> <span>+8620 38675621</span> <span>Fax:+8620 85283114</span> <span>E-Mail:cie@scau.edu.cn</span></p>
       <a href="#">后台管理</a>
   </div>
</div>
</footer>
</div>

<script src="{JS_PATH}jquery.min.js"></script> 
<script>
$(function(){
	//幻灯片轮播
	var aImg = $('.bigpic li');	
	var aDoc = $('.doc li');
	var iSize = aImg.length;		
	var index = 0;		
	var t;
	
	aImg.css({'opacity':0,'z-index':1});
	aImg.eq(0).css({'opacity':1,'z-index':2});
	aDoc.eq(0).css('background-color','#741d0f');
	//切换过程
	function change(index){
		aImg.stop();
		//隐藏除了当前元素，所以图像
		aImg.eq(index).siblings().animate({
			opacity:0
		},1000,function(){
		   aImg.eq(index).siblings().css('z-index',1)	
		})
		aDoc.eq(index).siblings().css('background-color','#fff');
		//显示当前图像
		aImg.eq(index).animate({
			opacity:1
		},1000,function(){
			aImg.eq(index).css('z-index',2);
		})
		aDoc.eq(index).css('background-color','#741d0f');
	}
	function autoshow() {
		index=index+1;
		if(index<iSize){
		   change(index);
		}else{
			index=0;
			change(index);
		}	
	}
	
	var int=setInterval(autoshow,5000);
	
	$('.banner').mouseenter(function() {
		clearInterval(int);
	});
	$('.banner').mouseleave(function() {
		int=setInterval(autoshow,5000);
	});
	
	aDoc.click(function(){
	   change(aDoc.index(this));
    });
	
	//图片滚动
	var oRoll = $('.cutroll');
	var oRollUl = $('.cutroll ul');
	
	var i = 0;
	var html = oRollUl.html() + oRollUl.html();
	oRollUl.html(html);
     
	var arrow = 'left';
	
	$('.al').click(function(){
	   	arrow = 'left';
	});
	$('.ar').click(function(){
	   	arrow = 'right';
	});
	
	function roll(){
		if(arrow == 'left'){
		   i--;	
		   oRollUl.css('margin-left',i)
		   if(i <= -(aRollLi.width()+8)*aRollLi.length/2){
				i = 0;
		   }
		}else if(arrow == 'right'){
		   i++;	
		   oRollUl.css('margin-left',i)
		   if(i >= 0){
			  i = -(aRollLi.width()+8)*aRollLi.length/2;
	       }
		}
    };
	
	var aRollLi = $('.cutroll ul li');
	roll();
	var timer = setInterval(roll,10);
	
	oRoll.mouseenter(function() {
		clearInterval(timer);
	});
	oRoll.mouseleave(function() {
		timer = setInterval(roll,10);
	});
});
function checkForm(){
      if($('.name').val() == ''){
      alert("请输入姓名！");
      $('.name').focus();
      return false;
   }
   if($('.sex').val() == '请选择'){
      alert("请选择性别！");
      return false;
   }
   if($('.nationality').val() == ''){
      alert("请输入国籍！");
      $('.nationality').focus();
      return false;
   }
   if($('.passport').val() == ''){
      alert("请输入护照号码！");
      $('.passport').focus();
      return false;
   }
   if($('.address').val() == ''){
      alert("请输入通讯地址！");
      $('.address').focus();
      return false;
   }
   if($('.phone').val() == ''){
      alert("请输入联系电话！");
      $('.phone').focus();
      return false;
   }
   var myreg = /^(((13[0-9]{1})|159|153|158|157|156|155|189|188|180|170|187)+\d{8})$/;
   if(!myreg.test($('.phone').val())){
      alert("请输入正确的联系电话！");
      $('.phone').focus();
      return false;
   }
   if(!(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test($('.email').val()))){ 
      alert("请输入正确的邮箱"); 
      $('.email').eq(0).focus(); 
      return false;
   }
   if($('.type').val() == '请选择'){
      alert("请选择报读类型！");
      return false;
   }
};
$(function(){
	$('.reset').click(function(){
	   	$('.name').val('');
		$('.nationality').val('');
		$('.passport').val('');
		$('.address').val('');
		$('.phone').val('');
		$('.email').val('');
		$('.beizhu').val('');
		$('.name').focus();
	});
});
$(function(){
    $('.side_nav a').eq($('.side_nav a').length-1).css('border-bottom','none');
})
$(function(){
	new slide("#main-slide","cur",310,260,1);//焦点图
	new SwapTab(".SwapTab","span",".tab-content","ul","fb");//排行TAB
})
</script>
</body>
</html>